/**
 * jims
 */
package com.jims.master.modules.patient.myRecord.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 同步his处方Entity
 * @author chent
 * @version 2017-09-20
 */
public class CasePrescription extends DataEntity<CasePrescription> {
	
	private static final long serialVersionUID = 1L;
	private String applyOn;		// 处方号
	private String billingPop;		// 开方医生
	private String billingDept;		// 开方科室
	private String clinicId;		// 门诊id
	private String visitId;		// 住院id
	private String itemClass;   //处方类型
	private String billingDate;  //开方时间
	
	public CasePrescription() {
		super();
	}

	public CasePrescription(String id){
		super(id);
	}

	public String getItemClass() {
		return itemClass;
	}

	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}

	public String getBillingDate() {
		return billingDate;
	}

	public void setBillingDate(String billingDate) {
		this.billingDate = billingDate;
	}

	@Length(min=1, max=64, message="处方号长度必须介于 1 和 64 之间")
	public String getApplyOn() {
		return applyOn;
	}

	public void setApplyOn(String applyOn) {
		this.applyOn = applyOn;
	}
	
	@Length(min=0, max=20, message="开方医生长度必须介于 0 和 20 之间")
	public String getBillingPop() {
		return billingPop;
	}

	public void setBillingPop(String billingPop) {
		this.billingPop = billingPop;
	}
	
	@Length(min=0, max=20, message="开方科室长度必须介于 0 和 20 之间")
	public String getBillingDept() {
		return billingDept;
	}

	public void setBillingDept(String billingDept) {
		this.billingDept = billingDept;
	}
	
	@Length(min=0, max=64, message="门诊id长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=0, max=64, message="住院id长度必须介于 0 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
}